﻿
$(window).load(function () {
    $('#slider').nivoSlider();
});
$(document).ready(function () {
    $("#topright ul#News li").each(function () {
        $(this).children("a:first").text(renews($(this).children("a:first").text()));
    });
});
function renews(txt) {
    var n = 40;
    if (txt.length > n) {
        txt = txt.substring(0, n) + "...";
    }
    return txt;
}